Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create some new options for BFSIterator #389

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Tortar
Copy link
Contributor

@Tortar Tortar commented Jun 26, 2024

Fixes #288.

This PR adds 2 new options, which can be useful when iterating in BFS:

  • depth_limit: specify the maximum level at which BFS should stop beforehand.
  • neighbors_type: specify which function to use when iterating in BFS, e.g. sometimes using inneighbors could be useful and this allows that

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.29%. Comparing base (ec6ab1b) to head (b67e871).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #389      +/-   ##
==========================================
- Coverage   97.31%   97.29%   -0.02%     
==========================================
  Files         120      120              
  Lines        6953     6956       +3     
==========================================
+ Hits         6766     6768       +2     
- Misses        187      188       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Tortar
Copy link
Contributor Author

Tortar commented Jul 12, 2024

Bump, I have some use cases for this, it should be easy to review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function to return the adjacent nodes of a given node at a distance greater than 1
1 participant